/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aufgabe1;

/**
 * Represent a various item
 * 
 * @author benjamin
 */
public class Item {
    private final int _size;
    private final int _value;
    private String _name;
    
    public Item(String name, int size, int value) {
        _name = name;
        _size = size;
        _value = value;
    }
    
    public int getSize() {
        return _size;
    }

    public int getValue() {
        return _value;
    }

    public String getName() {
        return _name;
    }
    
    @Override
    public String toString() {
        StringBuilder rv = new StringBuilder();
        rv.append("Name: ");
        rv.append(_name);
        rv.append(", Value: ");
        rv.append(_value);
        rv.append(", Size: ");
        rv.append(_size);
        return rv.toString();
    } 
    
}
